package Data;

import java.util.HashSet;

public class tree {

  public static void main(String[] args) {

    String s = "ab";
    HashSet<String> set = new HashSet<>();

    String res = "";

    for(int i=0;i<s.length();i++){
      char c=s.charAt(i);
      String st=s.substring(i+1);


      System.out.println(st);
   }
  }
}
